﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace REPORT.DTO
{
   public class DTO_HOADON
    {
        #region Khai bao thuoc tinh

        private int _maHoaDon;        
        private int _maKhachHang;        
        private int _maNguoiDung;        
        private DateTime _ngayLap;
                
        #endregion

        #region Khai bao phuong thuc
        public int MaHoaDon
        {
            get { return _maHoaDon; }
            set { _maHoaDon = value; }
        }
        public int MaKhachHang
        {
            get { return _maKhachHang; }
            set { _maKhachHang = value; }
        }
        public int MaNguoiDung
        {
            get { return _maNguoiDung; }
            set { _maNguoiDung = value; }
        }
        public DateTime NgayLap
        {
            get { return _ngayLap; }
            set { _ngayLap = value; }
        }
        #endregion

        #region Khai bao khoi tao
        public DTO_HOADON()
        { }
        public DTO_HOADON(int maHD, int maKH, int maND, DateTime ngayLap )
        {            
            this.MaHoaDon = maHD;
            this.MaKhachHang = maKH;
            this.MaNguoiDung = maND;
            this.NgayLap = ngayLap;
        }

        public DTO_HOADON(DTO_HOADON obj)
        {
            this.MaHoaDon = obj.MaHoaDon;
            this.MaKhachHang =obj.MaKhachHang;
            this.MaNguoiDung = obj.MaNguoiDung;
            this.NgayLap = obj.NgayLap;
        }
        #endregion
    }
}
